<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/admin/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>用户详细信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="../css/backCss.css">

	<style type="text/css">
		.m5 .item .bean{
			width:120px;
			text-align: right;   
			line-height: 25px;
			 float: left;
		}  
		.m5 .item .text{
			width:240px; 
			line-height: 25px; 
			float: left;
			text-align: left;
		}  
		
		.m5 .item{ 
			width: 400px;
			line-height: 25px;  
		}
		
		.m5{
			width: 400px;
			height: 330px;
			border:1px solid #C6D3DF; 
			background: #F0F0F0; 
			line-height: 25px; 
		}
	</style>
  </head>
  
  <body> 
  		<div class="top"  align="center" >
		<jsp:include page="top.jsp"></jsp:include>
	</div>
	<div class="content"  align="center" >
  	<div align="center">
     	<div class="m5">
     		<div style="padding-top: 20px"></div>
	     	<div class="item">
	     		<span class="bean">用户名：</span>
	     		<span class="text"><s:property value="user.userID" /></span>
	     	</div>
	     	<div class="item">
	     		<span class="bean">用户密码：</span>
	     		<span class="text"><s:property value="user.password" /></span>
	     	</div>
	     	<div class="item">
	     		<span class="bean">姓名：</span>
	     		<span class="text"><s:property value="user.name" /></span>
	     	</div >
	     	<div class="item">
	     		<span class="bean">所属身份：</span>
	     		<span class="text">
					<s:if test="#request.user.identity == 0">
						管理员
					</s:if>
					<s:elseif test="#request.user.identity == 1">
						普通用户
					</s:elseif> 
				</span>
	     	</div>
	     	<div class="item">
	     		<span class="bean">电子邮箱：</span>
	     		<span class="text"><s:property value="user.email" />&nbsp;</span>
	     	</div >
	     	<div class="item">
	     		<span class="bean">性别：</span>
	     		<span class="text">
					<s:if test="#request.user.sex==true">
						男
					</s:if>
					<s:else>
						女
					</s:else>
				</span>
	     	</div > 
	     	<div class="item">
	     		<span class="bean">生日：</span>
	     		<span class="text"><s:property value="user.birthday" />&nbsp;</span>
	     	</div >
	     	
	     	<div class="item">
	     		<span class="bean">创建日期：</span>
	     		<span class="text"><s:property value="user.createDateTime" />&nbsp;</span>
	     	</div >
	     	
	     	<div class="item">
	     		<span class="bean">最近登录：</span>
	     		<span class="text"><s:property value="user.lastLoginDateTime" />&nbsp;</span>
	     	</div >
	     	
	     	<div class="item">
	     		<span class="bean">最近登录IP：</span>
	     		<span class="text"><s:property value="user.ip" />&nbsp;</span>
	     	</div >
	     	
	     	<div class="item">
	     		<span class="bean">所出状态：</span>
	     		<span class="text">
					<s:if test="#request.user.status==true">
						可用
					</s:if>
					<s:else>
						禁用
					</s:else>
				</span>
	     	</div >   
	     	<div class="item" style="padding-top: 7px">
	     		<input type="button" value=" 返 回 "  style="background: #E6F5FF;" onclick="history.go(-1)">
	     	</div > 
     </div>
     </div>		
     </div>
		<div class="foot"  align="center" > 
			<jsp:include page="foot.jsp"></jsp:include>		
		</div>
  </body>
</html>
